#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

void swap(int x, int y)
{
	int temp = 0;
	temp = x;
	x = y;
	y = temp;
}

void swap1(int* x, int* y)
{

	int temp = 0;
	temp = *x;
	*x = *y;
	*y = temp;
}
int main()
{
	int a = 010;
	int b = 0;
	swap(a, b);
	printf("a=%d,b=%d\n", a, b);
	swap1(&a, &b);
	printf("a=%d,b=%d\n", a, b);


	return 0;
}
